<%@ page language="java" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>导入定义管理</title>
    <%@ include file="/WEB-INF/taglib.jsp" %>
    <%@ include file="/WEB-INF/jsp/loading.jsp" %>
    <%@ include file="/WEB-INF/jsp/include.jsp" %>
    <script type="text/javascript">
        var path = "<%=path%>";
    </script>
</head>
<body style="margin:0px; padding:0px;">
<div class="easyui-layout" fit="true">
    <div id="AddDlgDiv" align="center" style="margin:5px; padding:5px;">
        <form id="user_form" method="post">
            <div id="divNorth" region="north" title="excel定义信息" border="true" noheader="false"
                 style="padding: 5px; height: 40px; background: none repeat scroll 0 0 #EFEFEF;">
                <table class="f_table" cellspacing="1">
                    <tr>
                        <td align="right" class="s_bg" style="width:80px;">导入编码：</td>
                        <td align="left" style="width:150px;">
                            <input type="text" id="excelCode" name="excelCode" style="width: 150px;" class="easyui-validatebox"
                                   data-options="required:true,validType:'length[0,20]'"/>
                        </td>
                        <td align="right" class="s_bg" style="width:70px;">导入表名：</td>
                        <td align="left" style="width: 150px;">
                            <input type="text" id="tableName" name="tableName" style="width: 150px;" class="easyui-validatebox"
                                   data-options="required:true,validType:'length[0,64]'"/>
                        </td>
                        <td align="right" class="s_bg" style="width:80px;">excel模板：</td>
                        <td align="left" style="width: 150px;">
                            <input type="text" id="template" name="template" style="width: 150px;" class="easyui-validatebox"
                                   data-options="required:true,validType:'length[0,64]'"/>
                        </td>
                        <td align="right" class="s_bg" style="width:80px;">sheet索引：</td>
                        <td align="left" style="width:140px;">
                            <input type="text" id="sheetNo" name="sheetNo" style="width: 140px;" class="easyui-validatebox"
                                   data-options="required:true,validType:'length[0,20]'"/>
                        </td>
                        <td align="right" class="s_bg" style="width:90px;">数据起始行：</td>
                        <td align="left" style="width: 140px;">
                            <input type="text" id="startRow" name="startRow" style="width: 140px;" class="easyui-validatebox"
                                   data-options="required:true,validType:'length[0,20]'"/>
                        </td>
                    </tr>
                </table>
                <input type="hidden" id="excelId" name="excelId" value=""/>
            </div>
            <div region="center" title="表字段信息" border="true">
                <div id="celltb" style="padding: 1px; height: auto;overflow: hidden; ">
                    <div style="overflow: hidden;">
                        <a id="btn_addAllNode_celltb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add" plain="false"
                           onclick="btnAddAllCell()">新增全部</a>
                        <a id="btn_addNode_celltb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-add" plain="false"
                           onclick="btnAddCell()">新增</a>
                        <a id="btn_editNode_celltb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-edit" plain="false"
                           onclick="btnEditCell()">修改</a>
                        <a id="btn_delNode_celltb" href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-remove" plain="false"
                           onclick="btnDelCell()">删除</a>
                    </div>
                </div>
                <div region="center" title="已创建单元格信息" border="false" noheader="true"
                     style="padding: 5px 0 0 0;height: 50%">
                    <table id="celltt" title="" border="false"></table>
                </div>
            </div>
        </form>
        <div align="center" style="margin-top: 15px;">
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width: 75px" iconcls="icon-ok" onclick="submit_Add()">确定</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" style="width: 75px" iconcls="icon-cancel" onclick="closeLayer();">取消</a>
        </div>
    </div>
</div>
</div>
</body>
<script type="text/javascript" src="<%=path%>/resource/js/system/importdefine/add.js?time=<%=Math.random()%>"></script>
</html>